#-*- coding:utf-8 -*-
import time
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
print time.time()
timestamp = int(input(u'请输入时间戳：'))
timestamp = float('1525744346.339')
#转换成localtime
time_local = time.localtime(timestamp)
#转换成新的时间格式(2016-05-05 20:28:54)
dt = time.strftime("%Y-%m-%d %H:%M:%S",time_local)

print dt